import { defineFakeRoute } from "vite-plugin-fake-server/client";
// 模拟刷新token接口
// export default
 defineFakeRoute([
    {
        url: "/system/project/v2/projects",
        method: "get",
        response: () => {
            return {
                "code": 200,
                "msg": null,
                "result": {
                    "total": 20,
                    "data": [{
                        "id": 1,
                        "projectName": "",
                        "unitName": "授权单位",
                        "unitCount": 20,
                        "city": "成都",
                        "address": "项目地址",
                        "createdAt": "添加日期"
                    }]
                }
            }
        }
    }, {
        url: "/system/project/v2/project",
        method: "get",
        response: () => {
            return {
                "code": 200,
                "msg": "ok",
                "result": {
                    "id": 1,
                    "projectName": "项目名称",
                    "unityId": 1,
                    "contactName": "联系人名称",
                    "contactPhone": "联系人电话",
                    "city": "所在城市",
                    "buildDate": "",
                    "address": "",
                    "remark": "",
                    "openFunc": [1, 2]
                }
            }
        }
    }, {
        url: "/system/project/v2/project",
        method: "delete",
        response: () => {
            return {
                "code": 200,
                "msg": "删除成功",
                "result": null
            }
        }
    }, {
        url: "/system/project/v2/project",
        method: "put",
        response: () => {
            return {
                "code": 200,
                "msg": "修改成功",
                "result": null
            }
        }
    }, {
        url: "/system/project/v2/project",
        method: "post",
        response: () => {
            return {
                "code": 200,
                "msg": "添加成功",
                "result": null
            }
        }
    },
]);